<!DOCTYPE html>
<html lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<link rel="icon" href="/static/images/favicon.ico" />
        <link rel="stylesheet" content="text/css" href="/static/lib/bootstrap/css/bootstrap.min.css" />
        <link rel="stylesheet" content="text/css" href="/static/css/main.css" />
        <link rel="stylesheet" content="text/css" href="/static/css/base.nav.css" />
        <link rel="stylesheet" content="text/css" href="/static/css/base.sidebar.css" />
        <link rel="stylesheet" href="/static/lib/tree/jquery.treeview.css" />
		{% block stylesheets %}
		{% endblock %}
        <title>EngOnline{% block title_suffix %}{% endblock %}</title>
    </head>
    <body>
        {% include "nav.html" %}

        <div id="main-wrapper" class="container">
            <div class="row">
                <div id="content-wrapper" class="span12">
                    {% block all_content %}
                    <div class="row">
                        <div class="span9">
                        {% block content %}
                            {% if not user.is_authenticated %}
                                <p>Welcome, please login.</p>
                            {% endif %}
                        {% endblock %}
                        </div>

                        <div class="span3">
                        {% block sidebar %}
                            {% include "sidebar.html" %}
                        {% endblock %}
                        </div>
                    </div>
                    {% endblock %}
                </div>
            </div>
          
            <div class="row">
                <div class="span12">
                    <footer class="navbar">
                        <div class="navbar-inner">
                        {% block footer %}
                            <ul class="nav">
                                {{ footer|safe }}
                            </ul>
                        {% endblock %}
                        </div>
                    </footer>
                </div>
            </div>
        </div>
		
		<!-- Script libraries -->
        <script type="text/javascript" src="/static/lib/jquery/js/jquery-1.9.1.min.js"></script>
		<script type="text/javascript" src="/static/lib/jquery/js/jquery-ui-1.10.2.min.js"></script>
        <script type="text/javascript" src="/static/lib/bootstrap/js/bootstrap.min.js"></script>
			
		<!-- Content-specific scripts -->
        <script type="text/javascript" src="/static/script/setup_ajax.js"></script>
        <script type="text/javascript" src="/static/script/tag_tree.js"></script>
        <script type="text/javascript" src="/static/script/base.nav.js"></script>
        <script type="text/javascript" src="/static/script/base.sidebar.js"></script>
		{% block scripts %}
        {% endblock %}
    </body>
</html>
